home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 4
/
Aminet 4 - November 1994.iso
/
aminet
/
comm
/
net
/
dnet2_10_13.lha
/
DNet
/
Amiga
/
Sourcen.lha
/
client
/
quitdnet.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-01-14
|
625b
|
47 lines
/*
* QUITDNET.C
*
* DNET (c)Copyright 1988, Matthew Dillon, All Rights Reserved.
*
* QUITDNET [-Nnet]
*
*/
#include "defs.h"
void main ARGS((int, char **));
int
brk()
{
return(0);
}
void
main(ac,av)
char *av[];
{
int ok;
char *host = NULL;
onbreak(brk);
printf("QuitDNet V%s%s\n", VERSION, QUITDNET_VERSION);
{
short i;
for (i = 1; i < ac; ++i) {
if (strncmp(av[i], "-N", 2) == 0) {
host = av[i] + 2;
continue;
}
}
}
ok = DQuit(host); /* NULL ok */
if (ok) {
Delay(50 * 5);
DBreak(host);
} else
puts("DNET master port for network not found");
}